package com.rose;

//import com.myrole.RoseRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableEurekaClient
//在微服务启动的时候就可以自定义的去加载自定义的ribbon类
//@RibbonClient(name = "SPRINGCLOUDPROVIDERDEPT8081",configuration = RoseRule.class)
@EnableFeignClients(basePackages = {"com.rose"}) //确保DeptClientService被扫描到
//@ComponentScan("com.rose")
public class DeptConsumer_feign_80 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_feign_80.class,args);
    }
}
